<template>
  <div>
    <input type="text" v-model="inputValue">
    <button @click="publish">发布</button>
  </div>
</template>
<script>
export default {
  data(){
    return{
      inputValue:''
    }
  },
  created() {
    
  },
  methods: {
    async publish(){
      const {data:res}  = await this.$http.post('/post_comment/4',{
        content:this.inputValue,
        parent_id:23
      })
      console.log(res)
    }
  },
}
</script>
<style lang="less" scoped>

</style>